package org.an.demo.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.FrameLayout;

import static org.an.demo.view.MyLinearLayout.getAction;

/**
 * 创建时间：2017年04月06日18:09 <br>
 * 作者：fuchaoyang <br>
 * 描述：作为最内层viewgroup
 */

public class MyFrameLayout extends FrameLayout {
  public MyFrameLayout(Context context) {
    super(context);
  }

  public MyFrameLayout(Context context, AttributeSet attrs) {
    super(context, attrs);
  }

  @Override public boolean onTouchEvent(MotionEvent event) {
    System.out.println("=========== MyFrameLayout onTouchEvent " + getAction(event));
    return true;
    //return super.onTouchEvent(event);
  }
}
